import axios from '../model/axios'


export const routerQuery = (params: any) => {
    return axios({
      method: 'get',
      url: '/api/router/query',
      params
    })
  }

  export const routerAdd = (data: any) => {
    return axios({
      method: 'post',
      url: '/api/router/add',
      data
    })
  }
  export const routerDel = (data: any) => {
    return axios({
      method: 'delete',
      url: '/api/router/del',
      data
    })
  }


  
  export const typeRouterAdd = (data: any) => {
    return axios({
      method: 'post',
      url: '/api/router/typerouteradd',
      data
    })
  }

  export const typeRouterQuery = (params: any) => {
    return axios({
      method: 'get',
      url: '/api/router/typerouterquery',
      params
    })
  }
